package org.desktop.web.client.role.proxy;

import java.util.HashMap;
import java.util.Map;

import org.desktop.web.client.role.RoleService;
import org.desktop.web.client.role.RoleServiceAsync;
import org.desktop.web.shared.domain.entities.Role;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sencha.gxt.data.client.loader.RpcProxy;
import com.sencha.gxt.data.shared.loader.FilterPagingLoadConfig;
import com.sencha.gxt.data.shared.loader.PagingLoadResult;
import com.sencha.gxt.widget.core.client.info.Info;

public class RpcRolesProxy extends
		RpcProxy<FilterPagingLoadConfig, PagingLoadResult<Role>> {

	
	private RoleServiceAsync service = GWT.create(RoleService.class);
	@Override
	public void load(FilterPagingLoadConfig loadConfig,
			AsyncCallback<PagingLoadResult<Role>> callback) {
		service.getRoles( Cookies.getCookie("token"), loadConfig, callback);

	}

}
